package com.easy.common.util;

public class SYS {

    public static final String AUTHORIZATION_HEADER="Authorization";

    public  static  final String SK_QUEUE = "SK_QUEUE";
    public  static  final String SK_DLX_QUEUE = "SK_DLX_QUEUE";
    public static final String SK_EXCHANGE = "SK_EXCHANGE";
    public static final String SK_ROUTING_KEY = "SK_ROUTING_KEY";
    public static final String SK_DLX_ROUTING_KEY = "SK_DLX_ROUTING_KEY";
    //用来实现redis分布式锁的key
    //秒杀商品id    秒杀同步锁的key
    // 12          SK_PRE_LOCK_KEY12
    // 789         SK_PRE_LOCK_KEY789
    public static final String SK_PRE_LOCK_KEY="SK_PRE_LOCK_KEY";

    //秒杀商品库存的key
    // 12          SK_PRE_PRODUCT_KEY12    秒杀商品库存
    public static final String SK_PRE_PRODUCT_KEY
            = "SK_PRE_PRODUCT_KEY";
    public static final String SK_PRE_ACTIVITY_KEY
            = "SK_PRE_ACTIVITY_KEY";

    public static final String SK_ACTIVITY_START_TIME_KEY
            = "SK_ACTIVITY_START_TIME_KEY";

    public static final String SK_ACTIVITY_END_TIME_KEY
            = "SK_ACTIVITY_END_TIME_KEY";

    public static final String SK_ACTIVITY_STATUS_HASH_KEY
            = "SK_ACTIVITY_STATUS_HASH_KEY";
    //秒杀活动开始时间5分钟前开始预热
    public static final Long SK_ACTIVITY_START_TIME
            = 3*60*1000L;

    public static final String SK_RESULT_PRODUCT_SET_KEY
            = "SK_RESULT_PRODUCT_KEY";
    public static final Long SK_LOCK_EXPIRE_TIME
            = 20L;
}
